package com.itc.bi.dto;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * 数据目录表
 * @TableName tb_directory
 */
@Data
public class DirectoryDto implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 数据目录id
     */
    @ApiModelProperty(value = "数据目录id,新增不用传",required = false)
    private Long dtId;

    /**
     * 父级目录id
     */
    @ApiModelProperty(value = "父级目录id，若无上层 则不用传",required = false)
    private Long pid;

    /**
     * 目录名称
     */
    @ApiModelProperty(value = "目录名称",required = true)
    @NotBlank(message = "目录名称不能为空")
    private String name;
}